const controllers = require("../controllers/adminUser");
const adminAuthorization = require('../middleware/adminAuthorization');
module.exports = router => {
    router.post('/admin/user/save/baseInfo', adminAuthorization(), controllers.saveBaseUserInfo);
    router.get('/admin/user/find/baseInfo', adminAuthorization(), controllers.findBaseUserInfo);
    router.post('/admin/user/save/authTypeInfo', adminAuthorization(), controllers.saveAuthType);
    router.post('/admin/user/save/learingExper', adminAuthorization(), controllers.saveLearningExperience);
    router.get('/admin/user/find/learingExper', adminAuthorization(), controllers.findLearningUserInfo);
    router.post('/admin/user/save/uploadPic', adminAuthorization(), controllers.saveUploadPic);
    router.get('/admin/user/find/uploadPic', adminAuthorization(), controllers.findUploadPic);
    router.post('/admin/user/update/password', adminAuthorization(), controllers.updatePassword);
    router.post('/admin/user/update/userInfo', adminAuthorization(), controllers.updateUserInfo);
    router.get('/admin/user/find/userInfo', adminAuthorization(), controllers.findUserInfo);
    router.post('/admin/user/confirm/apply', adminAuthorization(), controllers.confirmApply);
    router.get('/admin/user/find/apply/list', adminAuthorization(), controllers.findApplyList);
    router.get('/admin/user/find/pay/detail', adminAuthorization(), controllers.findPayDetail);
    router.get('/admin/user/find/pay/list', adminAuthorization(), controllers.findPayList);
    router.get('/admin/user/find/liuyan/list', adminAuthorization(), controllers.findLiuyanList);
    router.post('/admin/user/create/pay/order', adminAuthorization(), controllers.createPayOrder);
};
